package com.cl.security.system.controller;

import com.cl.security.base.controller.TreeController;
import com.cl.security.common.result.CommonResult;
import com.cl.security.system.entity.Permission;
import com.cl.security.system.service.PermissionService;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("permission")
public class PermissionController extends TreeController<Permission,PermissionService> {
    private final PermissionService permissionService;

    public PermissionController(PermissionService service) {
        super(service, Permission.class);
        this.permissionService = service;
    }

//    @Override
//    @GetMapping("oldPage")
//    public CommonResult page(int pageNumber, int pageSize, String contain) {
//        return super.page(pageNumber, pageSize, contain);
//    }
//    @GetMapping("page")
//    public CommonResult page(int pageNumber,int pageSize,String contain, Integer menuId) {
//        return permissionService.page(pageNumber, pageSize,contain,menuId) ;
//    }
}
